<div id="block-center" style="position: relative;">
                	<div class="header-brown">
                    	<div class="icon"></div>
                        <div class="title">SPECIAL BOOKS</div>
                        <div class="clr"></div>
                  </div>
                     <div class="block-content-2">
                     	<div id="products">
                          <?php 
                          	foreach ($rows as $key => $val){
                          		
                          		
                          		$name = $val['name'];
                          		$linkImg = FILES_URL . '/books/small/' . $val['picture'];
                          		$picture = '<img src="' . $linkImg . '" />';
                          		$price = $val['price'];
                          		$selloff = $val['selloff'];
                          		if($selloff <=0 ){
                          			$price = '<span class="price-1" style="font-weight: bold; color: red">$' 
                          						. $price . '</span> ';
                          		}else{
                          			$price = '<span class="price-1" style="text-decoration: line-through;">$' . $price . '</span> ' 
                          					 . '<span class="saleoff" style="font-weight: bold; color: red">$' 
                          					 . $selloff . '</span>';
                          		}
                          		
                          		$filter = new Zend_Filter();
								$multiFilter = $filter->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'UTF-8')))
							 						 ->addFilter(new Zend_Filter_Alnum(true))
							  						 ->addFilter(new Zend_Filter_PregReplace(array('match'=>'#\s+#','replace'=>'-')))
							  						->addFilter(new Zend_Filter_Word_SeparatorToDash())
							  						->addFilter(new Zendvn_Filter_RemoveCircumflex());
							  
                          		$urlOptions = array('module'=>'shopping','controller'=>'index',
														'action'=>'detail','cid'=> $val['cat_id'],
														'tcat'=>$filter->filter($val['category_name']),
														'title'=>$filter->filter($val['name']),
														'id'=>$val['id']);					
								$linkDetial = $view->url($urlOptions,'shop-detail');
								$linkCart = $view->baseUrl('/shopping/index/add-item/id/' . $val['id']);                          									 
                          		
                          ?>
                          <div id="item">
                            	<div class="img">
                                	<a href="<?php echo $linkDetial;?>">
                                		<?php echo $picture;?>
                                	</a>
                                </div>
                                <div class="title">
                                	<?php echo $name;?>
                                </div>
                                <div class="price">
                                	Price: <?php echo $price;?>
                                </div>
                                <div class="add-to-cart">
                                	<span>
                                		<a href="<?php echo $linkCart;?>">
                                		<img src="<?php echo $view->imgUrl;?>/add-cart-icon.png" />
                                		</a>
                                	</span> 
                                    <span>
                                    	<a href="<?php echo $linkDetial;?>">Detail</a>
                                    </span>
                                </div>
                         	</div>
                         	<?php 
                          	}
                         	?>
                          <div class="clr" style="margin-bottom: 15px;"></div>
                        </div>
                     </div>
                </div>